let debounce = (fn, delay) => {
    let timer
    return function () {
        clearTimeout(timer)
        timer = setTimeout(() => {
            // fn 业务函数
           fn()
        }, delay)
    }

}
export default debounce